      <div id="goods-spec" class='goods-spec' >
      <table width='100%'>
          <tr>
             <td width='80%'>
                   <h4 class='spec-tip'><em>
         <{if $SelectSpecValue.selected}>
            <{t}>您选择了：<{/t}>
         <{else}>
           <{t}> 请选择：<{/t}>
         <{/if}>
         </em>
         <span><{$SelectSpecValue.value}></span>
         </h4>
             </td>
             <td align='right' width='20%'> <div id='view-products-list'><a href='javascript:void(0)' onclick="new Event(event).stop();$('goods-products-list').fireEvent('pop')"><{t}>规格列表<{/t}>&raquo;&raquo;</a></div></td>
          </tr>
      </table>
		<!--flat-->
         <input type='hidden' name='goods[product_id]' value='<{$goods.product_id}>' disabled='true'/>
              <table width='100%'>
                <{foreach from=$goods.spec key=key item=goodsFlatSpecDesc}>
                <{if $goodsFlatSpecDesc.spec_show_type != 'flat'}><{assign var=hasSelSpec value='true'}><{continue}><{/if}>
                   <tr class='spec-item specItem'>
                    <td style="width:10%; white-space:nowrap;padding-right:10px;vertical-align:middle;"><span><em><{$goodsFlatSpecDesc.spec_name}></em>：</span></td>
                    <td>
                      <ul>
                        <{foreach from=$goodsFlatSpecDesc.option key=skey item="subDesc"}>
							<{if $goods.used_spec.$skey}>
							   <{if $subDesc.display!="block"}>
								<li>
								<a href="<{link app=b2c ctl=site_product act=index arg0=$goods.goods_id arg1=$subDesc.spec_goods_images}>" specvid="<{$skey}>" specid="<{$key}>" >
								<{if $subDesc.spec_type=='text'}>
									<span><nobr><{$subDesc.spec_value}></nobr></span>
								<{else}>
									<img src="<{if $subDesc.spec_image}><{$subDesc.spec_image|storager}><{else}><{$spec_default_pic|storager}><{/if}>"  alt="<{$subDesc.spec_value}>" title="<{$subDesc.spec_value}>" width="<{$specimagewidth}>" height="<{$specimageheight}>">
								<{/if}>
								  <i title='<{t}>点击取消选择<{/t}>'>&nbsp;</i>
								</a>
								</li>
								<{/if}>
							<{/if}>
                        <{/foreach}>
                        </ul>
                    </td>
                   </tr>
                   <{/foreach}>
             </table>
		<!--flat-->
         <{if $hasSelSpec}>
              <div class='spec-item'>
                <ul class='clearfix'>
                <{foreach from=$goods.spec key=selKey item=goodsSelSpecDesc}>
                <{if $goodsSelSpecDesc.spec_show_type != 'select'}><{continue;}><{/if}>
                  <{foreach from=$goods.spec[$selKey].value key=sSelKey item="subDesc"}>
                    <{if $subDesc.selected}>
                        <{assign var='selectValue' value=$subDesc.spec_value}>
                    <{/if}>
                  <{/foreach}>
				  <{assign var="___dl" value=$___gift='请选择'|t:'gift'}>
                    <li class="handle <{if $selectValue}>selected<{/if}>"><em><{$goodsSelSpecDesc.name}></em>：
                    <span><{if $selectValue|trim == ''}><{assign var=selectValue value=null}><{/if}><{$selectValue|default:'请选择'}></span>
                    <{assign var="selectValue" value=' '}>
                   </li>
                <{/foreach}>
                <{foreach from=$goods.spec key=selKey item=goodsSelSpecDesc}>
                <{if $goodsSelSpecDesc.spec_show_type != 'select'}><{continue}><{/if}>
                   <li class="content specItem">
                    <ul>
                    <{foreach from=$goodsSelSpecDesc.option key=sSelKey item="subDesc"}>
                        <li>
                        <a href="<{link app=b2c ctl=site_product act=index arg0=$goods.goods_id arg1=$subDesc.spec_goods_images}>" specvid="<{$sSelKey}>" specid="<{$selKey}>">
                        <{if $subDesc.spec_type=='text'}>
                            <span><{$subDesc.spec_value}></span>
                        <{else}>
                            <img src="<{if $subDesc.spec_image}><{$subDesc.spec_image|storager}><{else}><{$spec_default_pic|storager}><{/if}>" style='border:1px #ccc solid' alt="<{$subDesc.spec_value}>" title="<{$subDesc.spec_value}>" width="<{$specimagewidth}>" height="<{$specimageheight}>">
                        <{/if}>
                        <i title='<{t}>点击取消选择<{/t}>'>&nbsp;</i>
                        </a>
                        </li>
                    <{/foreach}>
                  </ul>
                  </li>

                  <{/foreach}>
               </ul>
              </div>
         <{/if}>
      </div>